<template>
<div>
  <template>
    <el-table
        :data="allEms"
        style="width: 100%">
      <el-table-column
          prop="eid"
          label="员工编号"
          width="180">
      </el-table-column>
      <el-table-column
          prop="name"
          label="员工姓名"
          width="180">
      </el-table-column>
      <el-table-column
          prop="counterid"
          label="柜台号">
      </el-table-column>
      <el-table-column
          prop="ismanger"
          label="是否为管理员">
      </el-table-column>
    </el-table>
  </template>

</div>
</template>

<script>
import instance from "@/untils";

export default {
  name: "ShowAllEms",
  data(){
    return{
      allEms:{}
    }
  },
  created() {
    instance.get('/ems/getWorking').then(res=>{
      this.allEms=res.data.data;
    })
  }
}
</script>

<style scoped>

</style>